<template>
    <div class="page-content" id="api-debug">
        <div class="content-block-title">CMS数据接口</div>
        <div class="content-block-title">接口列表</div>
        <div class="list-block inset">
            <ul>
                <li><a @click="initForumList" href="#" class="list-button item-link">专栏列表</a></li>
                <li><a @click="initForumPage" href="#" class="list-button item-link">专栏信息和话题列表</a></li>
                <li><a @click="initArticlePage" href="#" class="list-button item-link">请求文章详情</a></li>
                <li><a @click="initSearchList" href="#" class="list-button item-link">搜索结果</a></li>
                <li><a @click="initUserProfile" href="#" class="list-button item-link">获取用户信息</a></li>
                <li><a @click="initGetMyfocus" href="#" class="list-button item-link">获取我的关注</a></li>
            </ul>
        </div>
        <div class="content-block-title">数据概览</div>
        <div class="content-block">{{store}}</div>
    </div>
</template>

<script type="text/javascript">
    import store from '../store/index'
    export default{
        components: {
        
        },

        mounted () {


        },

        computed: {
            store(){
                return store.state
            }
        },

        methods: {
            initForumList(){
                store.dispatch('initForumList',function(){
                    console.log('initForumList callback')
                })
            },
            initForumPage(){
                store.dispatch('initForumPage',function(){

                })
            },
            initArticlePage(){
                store.dispatch('initArticlePage',function(){

                })
            },
            initSearchList(){
                store.dispatch('initSearchList',function(){

                })
            },
            initUserProfile(){
                store.dispatch('initUserInfo',function(){

                })
            },
            initGetMyfocus(){
                store.dispatch('getMyFocus',function(){

                })
            }
        }

    }
</script>
